home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 6
/
Sonderheft_6-96.iso
/
pd
/
disktools
/
kopieren
/
afcopy v4.4
/
sourcecode
/
afcopy_defines.h
< prev
next >
Wrap
Text File
|
1996-11-03
|
6KB
|
257 lines
/*
* Gadget ID's
*/
#define G_Copy 0
#define G_Swap 1
#define G_Rename 2
#define G_Delete 3
#define G_Clone 4
#define G_View 5
#define G_Read 6
#define G_Edit 7
#define G_Hear 8
#define G_Info 9
#define G_Execute 10
#define G_Run 11
#define G_Comment 12
#define G_Protect 13
#define G_Archive 14
#define G_Unarc 15
#define G_Makedir 16
#define G_Mark 17
#define G_Unmark 18
#define G_Reverse 19
#define G_Dos 20
#define G_Batch 21
#define G_Volumes 22
#define G_Pathleft 23
#define G_Pathright 24 /* G_Pathright MUST equal G_Pathleft++ */
#define G_Sliderleft 25
#define G_Sliderright 26 /* G_Sliderright MUST equal G_Sliderleft++ */
#define G_Parentleft 27
#define G_Parentright 28
#define G_Regetleft 29
#define G_Regetright 30
#define G_Deviceleft0 31 /* these must */
#define G_Deviceleft1 32
#define G_Deviceleft2 33
#define G_Deviceleft3 34
#define G_Deviceleft4 35
#define G_Deviceleft5 36
#define G_Deviceleft6 37
#define G_Deviceleft7 38 /* be */
#define G_Deviceleft8 39
#define G_Deviceleft9 40
#define G_Deviceleft10 41
#define G_Deviceleft11 42
#define G_Deviceright0 43
#define G_Deviceright1 44
#define G_Deviceright2 45
#define G_Deviceright3 46
#define G_Deviceright4 47 /* consecutive */
#define G_Deviceright5 48
#define G_Deviceright6 49
#define G_Deviceright7 50
#define G_Deviceright8 51
#define G_Deviceright9 52
#define G_Deviceright10 53
#define G_Deviceright11 54
#define G_Userleft0 55
#define G_Userleft1 56 /* up */
#define G_Userleft2 57
#define G_Userleft3 58
#define G_Userleft4 59
#define G_Userleft5 60
#define G_Userleft6 61
#define G_Userleft7 62
#define G_Userleft8 63
#define G_Userleft9 64
#define G_Userleft10 65
#define G_Userleft11 66 /* up */
#define G_Userleft12 67
#define G_Userleft13 68
#define G_Userleft14 69
#define G_Userright0 70
#define G_Userright1 71 /* to */
#define G_Userright2 72
#define G_Userright3 73
#define G_Userright4 74
#define G_Userright5 75
#define G_Userright6 76
#define G_Userright7 77
#define G_Userright8 78
#define G_Userright9 79 /* here */
#define G_Userright10 80
#define G_Userright11 81 /* to */
#define G_Userright12 82
#define G_Userright13 83
#define G_Userright14 84
#define G_SortLeft 85
#define G_SortRight 86
#define G_DisplayLeft 87
#define G_DisplayRight 88
#define AMOUNTOFGADGETS 89 /* must be last gadget on list+1 */
/*define SPACEBETWEENGADGETS 0*/
/*
* For Status Window!
*/
#define G_StatCancel 0
#define G_ErrorList 1
#define AMOUNTOFSTATGADGETS 2
#define STATTOP 70
#define STATLEFT 20
#define STATWIDTH 600
#define STATHEIGHT 134
/*
* For Config Window
*/
#define G_Cdelverify 0
#define G_Cignorehiddenbit 1
#define G_Csetprotverify 2
#define G_Cignoreinserteddisks 3
#define G_Cdefaulticonfile 4
#define G_Coutputcon 5
#define G_Ccancelcontmsg 6
#define G_Cview 7
#define G_Cread 8
#define G_Cedit 9
#define G_Chear 10
#define G_Cexecute 11
#define G_Carchive 12
#define G_Cunarc 13
#define G_Cfilecol 14
#define G_Cdircol 15
#define G_Chighlightcol 16
#define G_Cmixfilesanddraws 17
#define G_Clines 18
#define G_Cautooverwrite 19
#define G_Cnomessages 20
#define G_Cignorenodisk 21
#define G_Cuseworkbenchscreen 22
#define G_Cpickscreen 23
#define G_Cshufflescreens 24
#define AMOUNTOFCFGGADGETS 25
#define CFGTOP 12
#define CFGLEFT 5
#define CFGWIDTH 600
#define CFGHEIGHT 230
#define CFGINHEIGHT 200
#define CFG_STRGAD_WIDTH 190
/*
* for protection window
*/
#define G_p_d 0
#define G_p_e 1
#define G_p_w 2
#define G_p_r 3
#define G_p_a 4
#define G_p_s 5
#define G_p_p 6
#define G_p_h 7
#define AMOUNTOFPROTGADGETS 8
#define G_m_sendfiles 0
#define G_m_readc 1
#define G_m_reado 2
#define G_m_cdc 3
#define G_m_cdo 4
#define G_m_modify 5
#define G_m_gadname 6
#define G_m_command 7
#define G_m_asynch 8
#define G_m_shuffle 9
#define AMOUNTOFMODGADGETS 10
/*
* Commandstring [] defines
*/
#define C_View 0
#define C_Read 1
#define C_Edit 2
#define C_Hear 3
#define C_Execute 4
#define C_Archive 5
#define C_Unarc 6
#define MAX_COMMANDS 7
/*
* Afcopy Defines!
*/
#define CS_ALL 6
#define CS_NOFILES 5
#define MARK 1
#define UNMARK 2
#define REVERSE 0
#define MAX_FILES_IN_LIST 600
#define MAX_FILE_LEN 30
#define MAX_PATH_LEN 400
#define MAX_USER_GAD_NAME_LEN 6
#define MAX_DEV_GAD_NAME_LEN 5
#define MAX_USER_GAD_ACTUAL_LEN 100
#define MAX_DEV_GAD_ACTUAL_LEN 30
#define MAX_CANCELCONTMSG_LEN 30
#define MIN_LINES_PER_SIDE 19
#define FILEYPOS 14
#define FILEHEIGHT 8
#define FILEWIDTH 258
#define FONTBASELINE 6
/*
* Colours!
*/
#define NORMALCOL 0
/* other colours are defined in afcopy.c and are variable now.... */
#define COPYBUFSIZE 65536
#define MAX_COMMENT_LEN 79
#define MAX_COMMAND_LEN 255
#define MAX_FONTNAME_LEN 33
#define DEFAULTCONFIGNAME "S:AFCopy.cfg"
#define UG_SENDFILES 1 /* send file names */
#define UG_READC 2 /* read current directory */
#define UG_READO 4 /* read other directory */
#define UG_CDC 8 /* change directory to current side before executing command */
#define UG_CDO 16 /* change directory to opposite side before executing command */
#define UG_MODIFY 32 /* allow modification of string after createstring() */
#define UG_SHUFFLE 64 /* shuffles screen on external command */
#define UG_ASYNCH 128 /* runs command asyncronus to main program (ie, doesnt wait for it to return) */
#define SELECTTOGGLE 1
#define SELECTSET 2
#define SELECTUNSET 3
#define S_NAME 1
#define S_SIZE 2
#define S_DATE 3
#define S_NONE 4
#define SORT_MIN 1
#define SORT_MAX 4
#define D_SIZE 1
#define D_DATES 2
#define D_ATTRIB 3 // not used for now... (need todefine variable fileattr too..)
#define DISPLAY_MIN 1
#define DISPLAY_MAX 2
#define AT_NO 0
#define AT_YES 1
#define AT_OVERW 2